package com.wjk.kylin.modules.system.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * <p>
 * 用户与岗位关联表
 * </p>
 */
@Data
@ToString
@TableName("sys_user_position")
public class UserPosition implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 用户id
     */
    @TableField("user_id")
    private String userId;

    /**
     * 岗位ID
     */
    @TableField("position_id")
    private String positionId;

}
